package com.party.core.model.circle;

import java.util.List;

/**
 * 圈子信息（带标签）
 * Created by wei.li
 *
 * @date 2017/10/24 0024
 * @time 14:03
 */
public class WithTage  extends CircleMember{

    //会员编号
    private String memberId;

    //会员头像
    private String memberLogo;

    //会员名称
    private String memberName;

    //会员电话
    private String memberMobile;

    //标签列表
    private List<String> circleTagList;

    //标签组合名称
    private String tags;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getMemberLogo() {
        return memberLogo;
    }

    public void setMemberLogo(String memberLogo) {
        this.memberLogo = memberLogo;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberMobile() {
        return memberMobile;
    }

    public void setMemberMobile(String memberMobile) {
        this.memberMobile = memberMobile;
    }

    public List<String> getCircleTagList() {
        return circleTagList;
    }

    public void setCircleTagList(List<String> circleTagList) {
        this.circleTagList = circleTagList;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;

        WithTage withTage = (WithTage) o;

        if (memberId != null ? !memberId.equals(withTage.memberId) : withTage.memberId != null) return false;
        if (memberLogo != null ? !memberLogo.equals(withTage.memberLogo) : withTage.memberLogo != null) return false;
        if (memberName != null ? !memberName.equals(withTage.memberName) : withTage.memberName != null) return false;
        if (memberMobile != null ? !memberMobile.equals(withTage.memberMobile) : withTage.memberMobile != null)
            return false;
        if (circleTagList != null ? !circleTagList.equals(withTage.circleTagList) : withTage.circleTagList != null)
            return false;
        return tags != null ? tags.equals(withTage.tags) : withTage.tags == null;

    }

    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + (memberId != null ? memberId.hashCode() : 0);
        result = 31 * result + (memberLogo != null ? memberLogo.hashCode() : 0);
        result = 31 * result + (memberName != null ? memberName.hashCode() : 0);
        result = 31 * result + (memberMobile != null ? memberMobile.hashCode() : 0);
        result = 31 * result + (circleTagList != null ? circleTagList.hashCode() : 0);
        result = 31 * result + (tags != null ? tags.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "WithTage{" +
                "memberId='" + memberId + '\'' +
                ", memberLogo='" + memberLogo + '\'' +
                ", memberName='" + memberName + '\'' +
                ", memberMobile='" + memberMobile + '\'' +
                ", circleTagList=" + circleTagList +
                ", tags='" + tags + '\'' +
                '}';
    }
}
